package com.rjxy.plansystemmanagement.service.impl;

import com.rjxy.plansystemmanagement.entity.HotelOrderInfo;
import com.rjxy.plansystemmanagement.mapper.HotelOrderMapper;
import com.rjxy.plansystemmanagement.service.HotelOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotelOrderServiceImpl implements HotelOrderService {
    @Autowired
    private HotelOrderMapper hotelOrderMapper;
    @Override
    public List<HotelOrderInfo> list() {
        return hotelOrderMapper.list();
    }

    @Override
    public void deleteHotelOrder(Integer ID) {
        hotelOrderMapper.deleteHotelOrder(ID);
    }


    @Override
    public void addHotelOrder(HotelOrderInfo hotelOrderInfo) {
        hotelOrderMapper.addHotelOrder(hotelOrderInfo);
    }

    @Override
    public HotelOrderInfo getHotelOrderById(Integer ID) {
        return hotelOrderMapper.getHotelOrderById(ID);
    }

    @Override
    public List<HotelOrderInfo> getHotelOrderByUid(Integer id) {
        return hotelOrderMapper.getHotelOrderByUid(id);
    }

    @Override
    public void updateHotelOrder(HotelOrderInfo hotelOrderInfo) {
        hotelOrderMapper.updateHotelOrder(hotelOrderInfo);
    }

    @Override
    public List<HotelOrderInfo> getHotelOrderByStatus(String status) {
        return hotelOrderMapper.getHotelOrderByStatus(status);
    }


}
